﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace d1Project.Modules.Common.do4A.Models
{
    public class User1
    {
        [Key]
        public string Id { get; set; }

        /// <summary>
        /// 编码
        /// </summary>
        [MaxLength(64)]
        public string Code { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        [Required]
        public string Name { get; set; }

        /// <summary>
        /// 拼音吗
        /// </summary>
        public string PinYin { get; set; }

        /// <summary>
        /// 头像
        /// </summary>
        public string Icon { get; set; }

        /// <summary>
        /// 性别：0：女 1：男
        /// </summary>
        public string Sex { get; set; }

        /// <summary>
        /// 出生日期：yyyy-MM-dd
        /// </summary>
        public string Birthday { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        [MaxLength(64)]
        public string MobilePhone { get; set; }

        /// <summary>
        /// 身份证号
        /// </summary>
        public string IdCard { get; set; }

        /// <summary>
        /// 是否有效 (1：有效，其它无效)
        /// </summary>
        [Required]
        public string IsAvailable { get; set; }

        /// <summary>
        /// 部门Id
        /// </summary>
        public string DeptId { get; set; }

        /// <summary>
        /// 区域Id
        /// </summary>
        public string AreaId { get; set; }

        /// <summary>
        /// 角色Id
        /// </summary>
        public string RoleId { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建人Id
        /// </summary>
        public string CreateById { get; set; }

        /// <summary>
        /// 创建人名称
        /// </summary>
        public string CreateByName { get; set; }

        /// <summary>
        /// 最后修改时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 最后修改人Id
        /// </summary>
        public string UpdateById { get; set; }

        /// <summary>
        /// 最后修改人名称
        /// </summary>
        public string UpdateByName { get; set; }
    }
}